package myschool.dao;

import myschool.entity.Student;
import myschool.pojo.Student2;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface StudentDao {


    int add(Student stu);//增

    int findTotal();//查看个数

    Student find(int id);//根据课程编号查信息

    List<Student> findALL();

    List<Student> fuzzySearch(@Param("wechat") String wechat,@Param("qq") String qq,@Param("sname") String sname,@Param("page") int page, @Param("line") int line);

    List<Student> findAll(@Param("page") int page, @Param("line") int line);//分页查信息

    int update(Student stu);//改

    int delete(int stuno);//删

}
